Current File : /var/www/vinorea/var/cache/dev/twig/94/942bc8dc8ae992d38fb833842bbc1f54.php |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @PrestaShop/Admin/Configure/AdvancedParameters/RequestSql/Blocks/form.html.twig */
class __TwigTemplate_f168fb1e8450bdd7c0767733ba42bb39 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'sql_request_form' => [$this, 'block_sql_request_form'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Configure/AdvancedParameters/RequestSql/Blocks/form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Configure/AdvancedParameters/RequestSql/Blocks/form.html.twig"));
// line 25
echo "
";
// line 26
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["requestSqlForm"]) || array_key_exists("requestSqlForm", $context) ? $context["requestSqlForm"] : (function () { throw new RuntimeError('Variable "requestSqlForm" does not exist.', 26, $this->source); })()), [0 => "@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig"], true);
// line 28
echo "
";
// line 29
$this->displayBlock('sql_request_form', $context, $blocks);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function block_sql_request_form($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sql_request_form"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sql_request_form"));
// line 30
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestSqlForm"]) || array_key_exists("requestSqlForm", $context) ? $context["requestSqlForm"] : (function () { throw new RuntimeError('Variable "requestSqlForm" does not exist.', 30, $this->source); })()), 'form_start');
echo "
<div class=\"card\">
<h3 class=\"card-header\">
";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("SQL query", [], "Admin.Advparameters.Feature"), "html", null, true);
echo "
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
";
// line 37
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["requestSqlForm"]) || array_key_exists("requestSqlForm", $context) ? $context["requestSqlForm"] : (function () { throw new RuntimeError('Variable "requestSqlForm" does not exist.', 37, $this->source); })()), 'widget');
echo "
</div>
</div>
<div class=\"card-footer\">
<a href=\"";
// line 41
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_sql_requests_index");
echo "\" class=\"btn btn-outline-secondary\">
";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cancel", [], "Admin.Actions"), "html", null, true);
echo "
</a>
<button id=\"sql-query-save-btn\" class=\"btn btn-primary float-right\">
";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Save", [], "Admin.Actions"), "html", null, true);
echo "
</button>
</div>
</div>
";
// line 49
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestSqlForm"]) || array_key_exists("requestSqlForm", $context) ? $context["requestSqlForm"] : (function () { throw new RuntimeError('Variable "requestSqlForm" does not exist.', 49, $this->source); })()), 'form_end');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Configure/AdvancedParameters/RequestSql/Blocks/form.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 109 => 49, 102 => 45, 96 => 42, 92 => 41, 85 => 37, 78 => 33, 71 => 30, 52 => 29, 49 => 28, 47 => 26, 44 => 25,);
}
public function getSourceContext()
{
return new Source("{#**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*#}
{% form_theme requestSqlForm '@PrestaShop/Admin/TwigTemplateForm/prestashop_ui_kit.html.twig' %}
{% trans_default_domain \"Admin.Advparameters.Feature\" %}
{% block sql_request_form %}
{{ form_start(requestSqlForm) }}
<div class=\"card\">
<h3 class=\"card-header\">
{{ 'SQL query'|trans }}
</h3>
<div class=\"card-body\">
<div class=\"form-wrapper\">
{{ form_widget(requestSqlForm) }}
</div>
</div>
<div class=\"card-footer\">
<a href=\"{{ path('admin_sql_requests_index') }}\" class=\"btn btn-outline-secondary\">
{{ 'Cancel'|trans({}, 'Admin.Actions') }}
</a>
<button id=\"sql-query-save-btn\" class=\"btn btn-primary float-right\">
{{ 'Save'|trans({}, 'Admin.Actions') }}
</button>
</div>
</div>
{{ form_end(requestSqlForm) }}
{% endblock %}
", "@PrestaShop/Admin/Configure/AdvancedParameters/RequestSql/Blocks/form.html.twig", "/var/www/vinorea/src/PrestaShopBundle/Resources/views/Admin/Configure/AdvancedParameters/RequestSql/Blocks/form.html.twig");
}
}